module.exports = {
    getHMS(n) {
        let h = this.getZero(Math.floor(n / 3600));
        let m = this.getZero(Math.floor(n / 60 % 60));
        let s = this.getZero(Math.floor(n % 60));
        return `${h}:${m}:${s}`;
    },
    getZero(n) {
        return n > 10 ? n : "0" + n
    }
}